<?php
error_reporting(E_ALL ^ E_NOTICE);
session_start();
$connect = mysql_connect('localhost','root','');
mysql_select_db("admintool");
?>
<?php
if($_SESSION["loggedin"]==true && $_SESSION["role"]==admin)
{
if(isset($_SESSION[msg]))
{
echo $_SESSION[msg];
unset($_SESSION[msg]);
}
?>

<?php
$value = $_GET['value'];
$select ="SELECT * from adminform WHERE addempname like '%$value%'";
$sq = mysql_query($select);
?>
<ul>
<?php
while($row = mysql_fetch_array($sq))
{?>
<li id="<?php echo $row[adminid];?>">
<?php
echo $row[addempname];
?>
</li>
<?php
}
?>
</ul>
<?php
}


else
{
header("Location: login.php");
}
?>